x86/EPT: simplification and cleanup
authorJan Beulich <jbeulich@suse.com>
Fri, 28 Mar 2014 12:37:10 +0000 (13:37 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 28 Mar 2014 12:39:54 +0000 (13:39 +0100)
commit3d8d2bd048773ababfa65cc8781b9ab3f5cf0eb0
tree523aeff8670d6bd3fba2285a8e2ee91ee0f52ff2
parente5ae6eefdfbc1816b050d02998f69f0b78d5c814
x86/EPT: simplification and cleanup

- drop rsvd*_ prefixes from fields not really reserved anymore
- replace odd uses of <expr> ? 1 : 0
- drop pointless variables from ept_set_entry()
- streamline IOMMU mirroring code in ept_set_entry()
- don't open code is_epte_valid() (and properly use it when dumping)
- streamline entry cloning in ept_split_super_page()
- compact dumping code and output

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/p2m-ept.c
xen/include/asm-x86/hvm/vmx/vmx.h